package com.cj.mapper;

import com.cj.pojo.ArticleTrash;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ArticleTrashMapper {


    void moveToTrash(@Param("id") int id);


    void restoreFromTrash(@Param("id") int id);


    void deleteFromTrash(@Param("id") int id);


    List<ArticleTrash> listTrash();


    ArticleTrash findTrashById(@Param("id") int id);

    void restoreArticle(int trashId);

    void deleteFromArticle(int id);
}

